package com.mtl.user.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * 用户管理实体类
 *
 * @author qms
 * @since 2019-08-06
 */
@Data
@Table(name="mtl_user")
@ApiModel(value = "User对象", description = "用户管理")

public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @Id

  private Integer id;
    /**
     * 最后登录时间
     */
    @ApiModelProperty(value = "最后登录时间")
  
  private LocalDateTime loginTime;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
  
  private String password;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
  
  private String userName;
    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")

  private String phone;
    /**
     * 注册时间
     */
    @ApiModelProperty(value = "注册时间")
  
  private LocalDateTime regeTime;
    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
  
  private Integer sex;
    /**
     * 积分
     */
    @ApiModelProperty(value = "积分")
  
  private Integer credits;


}
